package com.integral.xr.module.platform.controller.admin.village.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.integral.xr.framework.excel.core.annotations.DictFormat;
import com.integral.xr.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 村情展示 Response VO")
@Data
@ExcelIgnoreUnannotated
public class VillageRespVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "4417")
    @ExcelProperty("主键id")
    private String id;

    @Schema(description = "标题")
    @ExcelProperty("标题")
    private String title;

    @Schema(description = "作者")
    @ExcelProperty("作者")
    private String author;

    @Schema(description = "内容")
    @ExcelProperty("内容")
    private String content;

    @Schema(description = "发稿时间")
    @ExcelProperty("发稿时间")
    private LocalDateTime reportTime;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("platform_audit_state") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer state;

    @Schema(description = "是否发布", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否发布", converter = DictConvert.class)
    @DictFormat("platform_release_state") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer isrelease;

    @Schema(description = "区划id", example = "16891")
    @ExcelProperty("区划id")
    private String deptId;

    @Schema(description = "区划名称", example = "芋艿")
    @ExcelProperty("区划名称")
    private String deptName;

    @Schema(description = "区划编码")
    @ExcelProperty("区划编码")
    private String deptCode;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}